package com.codedef.service;

import com.codedef.entity.Floor;
import com.codedef.mapper.FloorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FloorService {

    @Autowired
    FloorMapper floorMapper;

    /**
     * 获取所有的楼层列表
     * 该方法未来通过Redis缓存起来
     *
     * @return
     */
    public List<Floor> getAllFloor() {
        return floorMapper.selectList(null);
    }

}
